<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            /* height: 200px; */
            border: 1px solid purple;

        }
        .box{
            width: 200px;
            height: 200px;
            border: 1px solid red;
        }
        /* .box1,.box2,.box3{
            float: left;
        } */
        .box1,.box2,.box3{
            /* 左浮动 */
            float: left;
        }
        .box2{
            /* 清除左右的浮动 */
            /* clear: both; */
            /* 清除右浮动 */
            /* clear: right; */
            /* 清除左浮动 */
            /* clear: left; */
        }
        /* .box2,.box1,.box3{
            右浮动
            float: right;
        } */
        /* .box1{
            默认没有浮动
            float: none;
        } */
        .container2{
            border: orangered 1px solid;
            height: 200px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box1 box"></div>
        <div class="box2 box"></div>
        <div class="box3 box"></div>
    </div>
    <div class="container2">
    </div>
</body>
</html>